// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import CartAnim from './components/CartAnim'
import create from './utils/create'
import store from './store'
import interceptor from './service/interceptor'

Vue.prototype.$create = create;

//给vue注册实例
createAPI(Vue, CartAnim, ['transitionend']);

Vue.config.productionTip = false

/* eslint-disable no-new */
const app = new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})

//执行拦截器初始化
interceptor(app)
